President Barack Obama in November warned Donald Trump, then the president-elect, against hiring retired Gen. Michael Flynn as his national security adviser, three Obama administration officials told NBC on Monday.

The Associated Press and CNN have also reported that Obama discouraged Trump from appointing Flynn.

The reports said Obama, who fired Flynn as head of the Defense Intelligence Agency about two years after appointing him to the position in 2012, warned Trump about Flynn during a 90-minute conversation they had at the White House on November 10, two days after Trump’s election victory.

Flynn was ousted in February as Trump’s national security adviser. Trump and the White House have in recent days attempted to shift the blame for Flynn to the Obama administration.

Trump told Fox News on April 28 that Flynn was “already approved by the Obama administration at the highest level” when he was hired as national security adviser in January. He doubled down on that claim on Monday morning, tweeting that Flynn “was given the highest security clearance by the Obama Administration – but the Fake News seldom likes talking about that.”

A senior White House official released a statement acknowledging that "Obama made the president aware he was not a fan of Michael Flynn, but why would he be, given this was a person who had been critical of Obama in a public way. ... It is worth noting Flynn previously served in the Obama administration."

Another White House official told NBC that Trump thought Obama's remarks about Flynn were made "in jest" and asked why Obama didn't "take steps to revoke [Flynn's] security clearance" if he was so concerned about him.

Flynn was forced out of the DIA by Obama in 2014 because his vision for the agency "was seen as disruptive," a former Pentagon official who worked closely with Flynn told The Washington Post at the time.

"Mr. President: You failed to vet Flynn, hired him, and only fired him once his lies became public," Democratic Rep. Adam Schiff tweeted on Monday. "Which part of that is Obama's fault?"

Former National security adviser General Michael Flynn arrives to deliver a statement during the daily briefing at the White House in Washington U.S., February 1, 2017. Picture taken February 1, 2017. REUTERS/Carlos Barria

Foto: Former National Security Adviser Michael Flynn. source Thomson Reuters

Flynn has recently come under intense scrutiny for failing to disclose his conversations with Russia's ambassador, Sergey Kislyak, during the transition period. He also failed to disclose his payments from Russia's state-owned news agency, Russia Today, when he was renewing his security clearance in January 2016.

Additionally, Flynn lobbied on behalf of a Turkish businessman with ties to the country's government between August and November, but he did not register as a foreign agent with the Justice Department until earlier this year.

Revelations about these omissions have sparked questions about why Flynn, who served as a top Trump surrogate during the presidential election, was not more carefully vetted by Trump administration officials before being brought into the White House.

"Why would you rerun a background check on someone who was the head of the Defense Intelligence Agency that had and did maintain a high-level security clearance?" White House press secretary Sean Spicer said during a press briefing late last month.

Many national security and intelligence experts have argued, however, that in light of Flynn's lobbying work throughout 2016 and the fact that he was pushed out by Obama in 2014, he should have been subject to more scrutiny before he was elevated to such a high-level national-security position at the White House.

The news of Obama's warning to Trump comes hours before former Deputy Attorney General Sally Yates is set to testify before a Senate judiciary subcommittee about reports that she warned the White House in January about what Flynn and Kislyak spoke about in the weeks before Trump was inaugurated.

Yates is expected to publicly confirm those reports for the first time - and deliver a rebuke to the Trump administration in the process.

"Ask Sally Yates, under oath, if she knows how classified information got into the newspapers soon after she explained it to" the White House counsel, Trump tweeted on Monday morning.

Trump, who asked for Flynn's resignation after reports surfaced that he had misled Vice President Mike Pence about his conversations with Kislyak before Trump took office, has said he was not aware that Flynn had discussed the issue of US sanctions with the Russian ambassador.

According to CNN, however, Yates plans to insist that she told the White House about Flynn's conversations with Kislyak and how he was misleading Pence and was therefore susceptible to Russian blackmail. Yates reportedly told White House counsel Don McGahn that she had "serious concerns" about Flynn. But he was not asked to resign until February 13, at least two weeks after Yates visited the White House.